<?php

namespace App\Http\Controllers;
use Illuminate\Auth\Recaller;
use Illuminate\Support\Facades\Validator;

class UserController extends Controller
{
    public function login()
    {
        return view('user.login');
    }
    public function check(Requet $requet)
    {

        $name=$requet->input('name');
        $password=$request->input('password');
        $rule=[
            'name'=>'required', 
            'password'=>'required'
        ];
        $message=[
            'name.required'=>'用户名不能为空',
            'password.required'=>'密码不能为空',
        ];
    }
}